Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


IncrementGenerationNumber

The IncrementGenerationNumber method increments and returns the generation number of the currently focused value.

ODULong IncrementGenerationNumber ();
return value
The generation number of the currently focused value, expressed as an unsigned 32-bit value.
DISCUSSION
You can use the generation number of a value to tell whether the data in the value has changed. For example, when your part makes a signification change to the data in a value, you can call this method to increment its generation number.

EXCEPTIONS
kODErrUnfocusedStorageUnit
This storage unit is not focused on a value.
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODStorageUnit::GetGenerationNumber method (page 688).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help